package com.lyy.king.common.utils.exception;

/**
 * @BelongsProject: springcloud-learning
 * @BelongsPackage: com.cdx.common.exception
 * @Author: cdx
 * @CreateTime: 2022-06-04  13:45
 * @Description: 业务异常
 * @Version: 1.0
 */
public class BizException extends BaseException {
    public BizException(String message) {
        super(message);
    }

    /**
     * 检查异常
     * @param isTrue
     * @param message
     */
    public static void check(boolean isTrue,String message){
        if(!isTrue){
            throw new BizException(message);
        }
    }
}
